@extends('/layout/index')

@section('main')
<div class="mws-panel grid_8">
    <div class="mws-panel-header">
        <span>添加节点</span>
    </div>

    @if (count($errors) > 0)
          <div class="mws-form-message error">
            <ul>
                @foreach ($errors->all() as $error)
                    <li>{{ $error }}</li>
                @endforeach
            </ul>
        </div>
    @endif

    <div class="mws-panel-body no-padding">
        <form action="{{URL('/Admin/node')}}" method="post" class="mws-form">
            <div class="mws-form-inline">
                <div class="mws-form-row">
                    <label class="mws-form-label">节点名称</label>
                    <div class="mws-form-item">
                        <input type="text" class="small" name="username">
                    </div>
                </div>
                 <div class="mws-form-row">
                    <label class="mws-form-label">请求方式</label>
                    <div class="mws-form-item">
                        <input type="text" class="small" name="mode">
                    </div>
                </div>
                 <div class="mws-form-row">
                    <label class="mws-form-label">请求地址</label>
                    <div class="mws-form-item">
                        <input type="text" class="small" name="path">
                    </div>
                </div>

                 <div class="mws-form-row bordered">
                    <label class="mws-form-label">状态</label>
                    <div class="mws-form-item clearfix">
                        <ul class="mws-form-list inline">

                            <li><input type="radio" name="status" value="1"> <label>启用</label></li>

                            <li><input type="radio" name="status" value="2"> <label>禁用</label></li>
                        </ul>
                    </div>
                </div>
              
            <div class="mws-button-row">
                {{ csrf_field() }}
             
                <input type="submit" class="btn btn-danger" value="添加">
                <input type="reset" class="btn " value="重置">
            </div>
        </form>
    </div>
</div>
@endsection